<template>
    <div id="app">
        <div class="view">
            <router-view></router-view>
        </div>
    </div>
</template>

<script>
export default {
    name: 'app',
    data () {
        return {
        }
    },
    components: {
    },
    methods: {
    },
    computed: {
        showMsg () {
            return this.$store.state.showMsg
        }
    },
    created () {
    },
    watch: {
        showMsg () {
            this.$message({
                message: this.$store.state.msg,
                type: 'warning'
            })
        }
    }
}
</script>

<style lang="stylus" rel="stylesheet/stylus">
@import './common/stylus/mixin.styl'
@import '../static/css/animate.css'

body
    /* background url("./common/pic/bg.png") */
    background: url('../static/pic/bg.png')
    background-repeat: no-repeat
    background-size: cover
    background-attachment: fixed

#app
    position: absolute
    width: 100%
    height: 100%
    top: 0
    left: 0
    font-family: 'Microsoft yahei'

    .view
        position: absolute
        top: 0
        bottom: 0
        width: 100%
</style>
